package com.nageoffer.shortlink.admin.common.enums;

import com.nageoffer.shortlink.admin.common.convention.errorcode.IErrorCode;

public enum UserErrorCodeEnum implements IErrorCode {


    USER_TOKEN_FAIL("A00200","用户token登录失败"),

    USER_NULL("B00200","用户不存在"),

    USER_EXIST("B00202","用户已经存在"),

    USERNAME_EXIST("B00201","用户名已经存在"),

    USER_SAVE_ERROR("B00203","用户记录新增失败");





    private final String code;
        private final String message;

        UserErrorCodeEnum(String code,String message){
            this.code = code;
            this.message = message;
        }


    @Override
    public String code() {
        return code;

    }

    @Override
    public String message() {
        return message;
    }
}
